package com.jacobson.core.framework

import com.jacobson.core.widget.logger.LoggerFactory
import okhttp3.logging.HttpLoggingInterceptor

/**
 * ================================================
 *
 *  @author Wucz on 2018/7/23 14:11
 * ================================================
 */
class PrettyHttpLoggingInterceptorProxy : HttpLoggingInterceptor.Logger {
    private val logger = LoggerFactory.getLogger("http")

    override fun log(message: String?) {
        message?.let {
            logger.v("http-> $it")
        }
    }

}